// 添加成交记录
function addRecordHandler(){
	addRecordForm.getForm().submit({
		url: 'addRecord.xml?action=submitRecord',
		success: function(form, action){
			Ext.Msg.alert('Success', action.result.msg);
			addRecordForm.getForm().reset();
		}
	});
}

// 组件输出完后调用
function afterOnReady(){
	addRecordButton.setHandler(addRecordHandler);
}